💾 Backup My Shortcuts Library
(
43
actions, 32 KB)
0 ToolboxProForShortcuts > HomeIntent
1 Create Folder
Backup
➔ Backup
»
11
35
2 Caffeinated > ActivateCaffeinatedIntent
3 Get My Shortcuts »
4
18
Folder
:
{ "Identifier": "820028C8-83FC-4D07-B81D-070658EE28E5", "DisplayString": "Shortcutomation" }
4 Count Items in
[3 My Shortcuts]
➔ #TotalShortcuts
»
22
25
32
5 Text
➔ My Apple Shortcuts.backup
»
6
9
10
19
27
30
34
My Apple Shortcuts.backup
6 DataJar > GetValueIntent »
keyPath
:
[5 My Apple Shortcuts.backup]
.status
7 Count Items in
[6 Value]
➔ #ShortcutsHaveBeenRun
»
8 If
[7 #ShortcutsHaveBeenRun]
is
0
9 DataJar > DeleteValueIntent
keyPath
:
[5 My Apple Shortcuts.backup]
.data
deleteStrategy
:
alwaysAllow
10 DataJar > DeleteValueIntent
keyPath
:
[5 My Apple Shortcuts.backup]
.currentIdx
deleteStrategy
:
alwaysAllow
11 Get Contents of Folder »
Folder
:
[1 Backup]
12 Repeat with Each in
[11 Get Contents of Folder]
13 If
[Repeat Item
’s Name
]
does not contain
assets
14 Delete Files
[Repeat Item]
DeleteImmediatelyDelete
:
true
15 End If
16 End Repeat with Each
17 End If ▵
8
18 Repeat with Each in
[3 My Shortcuts]
19 DataJar > GetValueIntent »
keyPath
:
[5 My Apple Shortcuts.backup]
.status
20 If
[19 Value
’s Name
]
does not contain
[Repeat Item]
21 Run Shortcut
[Repeat Item]
Workflow
:
[Repeat Item]
22 Dictionary »
{ "current": "
[Repeat Index]
", "total": "
[4 #TotalShortcuts]
" }
23 Run Shortcut
Progress Bar Maker (without Text)
»
25
Input
:
[22 Dictionary]
Workflow
:
{ "workflowIdentifier": "6168F0E9-9EDA-4F74-9B2F-74E63D3E4F2A", "workflowName": "Progress Bar Maker (without Text)", "isSelf": false }
24 DataJar > GetValueIntent
➔ Text Divider
»
keyPath
:
Text Divider
25 Text »
[24 Text Divider]
✅
[Repeat Item]
[
[Repeat Index]
/
[4 #TotalShortcuts]
]
[23 Shortcut Result]
26 Show Notification
[25 Text]
NotificationActionSound
:
false
NotificationActionTitle
:
27 DataJar > InsertValueInArrayIntent
values
:
[Repeat Item
’s Name
]
valueConversionMode
:
text
keyPath
:
[5 My Apple Shortcuts.backup]
.status
insertionPoint
:
end
28 End If ▵
20
29 End Repeat with Each ▵
18
30 DataJar > GetValueIntent »
keyPath
:
[5 My Apple Shortcuts.backup]
.status
31 Count Items in
[30 Value]
»
32 If
[31 Count]
is
ConditionalActionString
No
NumberValue
[4 #TotalShortcuts]
33 Text
➔ []
»
[]
34 DataJar > SetValueIntent
overwriteStrategy
:
alwaysAllow
keyPath
:
[5 My Apple Shortcuts.backup]
.status
valueConversionMode
:
automatic
values
:
[33 []]
35 Get Contents of Folder »
Folder
:
[1 Backup]
36 Repeat with Each in
[35 Get Contents of Folder]
37 If
[Repeat Item
’s Name
]
does not contain
assets
38 Delete Files
[Repeat Item]
DeleteImmediatelyDelete
:
true
39 End If
40 End Repeat with Each
41 End If ▵
32
42 Caffeinated > DeactivateCaffeinatedIntent